package com.onec.service.api.enums.error;

/**
 * payment 服务状态设计
 *
 * @author ONEC
 */
public enum TradeErrorEnum {

    /**
     * 成功
     */
    SUCCESS(10000, "成功"),
    /**
     * 服务器内部错误
     */
    NO_SERVER_ERROR(6001, "服务请求错误，请检查接口名！"),
    FREEZE_MERCHANT_ERROR(6002, "机构商户信息有误！"),
    EXTERNAL_NUM_EXIST_ERROR(6003, "交易订单号已经存在！"),
    TRADE_NUM_NOT_EXIST_ERROR(6003, "交易订单号不存在！"),
    SERIAL_NUM_NOT_EXIST_ERROR(6003, "平台流水订单号不存在！"),
    REALIZE_SERVER_ERROR(6062, "接口实现中，尽情期待！");

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    TradeErrorEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
